package com.fau.cm.util;

import java.io.Serializable;

/**
 * 系统常量表
 * @author liy
 * @since 2014年7月25日,上午9:47:40
 */
public class SystemConfig implements Serializable {

	private static final long serialVersionUID = -757635066186116034L;
	
	/* 用户状态 */
	public static final String ONLINE_STATUS = "0";			// 在线状态
	public static final String OFFLINE_STATUS = "1";		// 离线状态
	
	/*上传类型*/
	public static final String UPLOAD_EXCEL = "xls";																// 上传Excel格式 office 2003
	
	/*电话管理导出excel模版*/
	public static final String EXPORT_CALL_RECORDING = "/template/call_maintain/电话录音模版.xls";						// 电话录音导出模板
	public static final String EXPORT_CALL_CALLER = "/template/call_maintain/来电明细模版.xls";							// 来电明细导出模板
	public static final String EXPORT_CALL_EXHALE = "/template/call_maintain/呼出电话明细模版.xls";						// 呼出电话明细导出模板
	public static final String EXPORT_DUPLICATEL_EXHALE = "/template/call_maintain/去重来电信息模版.xls";					// 去重来电信息导出模板
	public static final String EXPORT_DUPLICATEL_STA_EXHALE = "/template/call_maintain/去重来电统计模版.xls";				// 去重来电统计导出模板
	public static final String EXPORT_CALL_DATA_RECORD = "/template/call_maintain/话单记录导出模版.xls";					// 话单记录管理导出模板
	
	/*客户管理导出excel模版*/
	public static final String EXPORT_CALL_CUSTOMER = "/template/call_maintain/客户信息明细模版.xls";						// 导出客户信息明细模板
	public static final String EXPORT_CALL_REMIND = "/template/call_maintain/客户提醒信息模版.xls";						// 导出客户提醒信息模板
	
	/*短信导出Excel模板*/
	public static final String EXPORT_SMS = "/template/sms/短信管理导出模板.xls";
	
	/*话务任务模板*/
	public static final String EXPORT_CALL_UNALLOCATED_TASK = "/template/call_task/话务任务导出模板.xls";					// 待处理话务任务模板
	public static final String EXPORT_CALL_TASK = "/template/call_task/所有话务任务导出模板.xls";							// 待处理话务任务模板
	
	/*日报导出模板*/
	public static final String ORDERS_STATISTICS_FILE = "/template/statistics/订单统计.xls";							// 导出订单统计模板Excel
	public static final String CALL_STATISTICS_FILE = "/template/statistics/电话统计.xls";								// 导出电话统计模板Excel
	public static final String TASK_STATISTICS_FILE = "/template/statistics/任务统计.xls";								// 导出任务统计模板Excel
	
	/*统计导出模板*/
	public static final String STAFF_TASK_STATISTICS_FILE = "/template/statistics/员工任务统计表导出模版.xls";				// 导出员工任务模版
	public static final String STAFF_PERFORMANCE_STATISTICS_FILE = "/template/statistics/员工业绩分析表导出模版.xls";		// 导出员工业绩模版
	public static final String STAFF_GROUP_STATISTICS_FILE = "/template/statistics/组业绩分析表导出模版.xls";				// 导出组业绩模版
	public static final String STAFF_CENTER_STATISTICS_FILE = "/template/statistics/中心业绩分析表导出模版.xls";			// 导出组业绩模版
	
	/*需要下载的导入模板*/
	public static final String CUSTOMER_IMPORT_FILE = "/template/call_maintain/导入客户模版.xls";						// 客户导入模版
	public static final String CALL_TASK_IMPORT_FILE = "/template/call_maintain/导入话务任务模板.xls";					// 话务导入模版
	
	public static final String JOB_WORK_STATUS = "0";					// 员工在职
	
	/*订单导出模板*/
	public static final String ORDER_ALL = "/template/order/所有订单查询导出模板.xls";
	
	/*话务系统中心*/
	public static final String CALL_CENTER_TYPE = "2";					// 话务中心
	
	/*录音是否公开*/
	public static final String ISOPEN0 = "0"; 							// 不公开
	public static final String ISOPEN1 = "1"; 							// 公开
	
	/* 话务任务状态*/
	public static final String CALL_TASK_UNALLOCATED = "28";			// 未分配
	public static final String CALL_TASK_UNTREATED = "23";				// 未处理
	public static final String CALL_TASK_PENDING = "26";				// 待处理
	public static final String CALL_TASK_TRANSFER = "24";				// 已转移
	public static final String CALL_TASK_END = "25";					// 已结束
	public static final String CALL_TASK_TERMINATE = "11";				// 已终止
	
	/* 话务任务所处等级 */
	public static final String CALL_TASK_GRADE_INIT = "0";				// 初始等级（新生成未分配）
	public static final String CALL_TASK_GRADE_CENTER = "1";			// 在中心处
	public static final String CALL_TASK_GRADE_GROUP = "2";				// 在组处
	public static final String CALL_TASK_GRADE_USER = "3";				// 在话务员处
	
	/*话务任务查询列表类型*/
	public static final String CALL_TASK_LIST_UNALLOCATE = "0";			// 未分配列表
	public static final String CALL_TASK_LIST_ALLOCATE = "1";			// 已分配列表
	
	/*客户电话是否是主要号码*/
	public static final String CUSTOMER_TEL_NO_MAIN = "0";				// 不是主要的
	public static final String CUSTOMER_TEL_IS_MAIN = "1";				// 主要号码
	
	/*客户号码类型*/
	public static final String CUSTOMER_TEL_PHONE_TYPE = "30";			// 手机
	public static final String CUSTOMER_TEL_FIXED_TYPE = "29";			// 固话
	
	/*号码验证工具类，验证结果类型*/
	public static final String CELLPHONE_TYPE = "CELLPHONE";			// 手机
	public static final String FIXEDPHONE_TYPE = "FIXEDPHONE";			// 固话
	public static final String INVALIDPHONE = "INVALIDPHONE";			// 非法号码
	
	/*产品类型*/
	public static final String MEDICINE_RIDEPIN_TYPE = "14";			// 搭销
	public static final String MEDICINE_PREMIUMS_TYPE = "15";			// 赠品
	public static final String MEDICINE_GENERAL_TYPE = "16";			// 普通产品
	
	/*话务订单状态*/
	public static final String ORDERS_IMPORT_TYPE = "38";				// 正在输入
	public static final String ORDERS_UNDER_TYPE = "39";				// 已下单
	
	/*订单系统状态*/
	public static final String ORDERS_WAIT_AUDIT_TYPE = "39";			// 待审核
	public static final String ORDERS_AUDIT_PASS_TYPE = "0";	   		// 审核通过
	public static final String ORDERS_AUDIT_NOPASS_TYPE = "3";	   		// 订单未通过
	public static final String ORDERS_AUDIT_INVALID_TYPE = "2";	   		// 无效订单
	public static final String ORDERS_AUDIT_CANCEL_TYPE = "6";     		// 取消订单
	
	/*仓储系统订单状态*/
	public static final String ORDERS_WAIT_DELIVERY_TYPE = "0";			// 订单待发货
	public static final String ORDERS_DELIVERY_TYPE = "1";				// 订单发货
	public static final String ORDERS_RETREAT_TYPE = "2";				// 订单退单
	public static final String ORDERS_SIGN_TYPE = "4";					// 订单签收
	public static final String ORDERS_NET_SIGN_TYPE = "5";				// 订单网签
	public static final String ORDERS_NET_RETREAT_TYPE = "6";			// 订单网退
	
	/*财务系统订单状态*/
	public static final String BE_RECONCILED = "5";						// 待对账
	public static final String HAS_RECONCILED = "6";					// 已对账
	public static final String HAS_SECTIONED = "8";						// 已回款
	
	/*订单分配到等级 */
	public static final String ORDERS_GRADE_INIT = "0";					// 初始等级（新生成订单未分配）
	
	/*打开话务任务-联系记录-联系方式类型*/
	
	public static final String CONTACT_RECORD_INCOMING = "1";			// 呼入
	public static final String CONTACT_RECORD_OUTGOING = "0";			// 呼出
	
	/*健康检查类型*/
	public static final String BIL = "BIL";
	public static final String BLD = "BLD";
	public static final String GLU = "GLU";
	public static final String KET = "KET";
	public static final String LEU = "LEU";
	public static final String PRO = "PRO";
	public static final String HEIGHT_WEIGHT = "HEIGHT_WEIGHT";
	public static final String HEIGHT = "HEIGHT";
	public static final String WEIGHT = "WEIGHT";
	public static final String DBP = "DBP";
	public static final String SBP = "SBP";
	
	/*短信发送状态*/
	public static final String SMS_NO_SEND_TYPE = "5";				// 短信未发送状态
	
	/*电话是否接听类型*/
	public static final String MEDICAL_ANSWERED_TYPE = "1";			// 接听
	public static final String MEDICAL_NO_ANSWER_TYPE = "0";		// 未接听
	
	/*表单字段转译类型*/
	public static final String CH_FIELD_TYPE = "CH_FIELD";			// 转译数据字段类型
	
	/*根节点资源*/
	public static final Integer ROOT_RESOURCE_TYPE = 2;
	
	/*系统类型*/
	public static final String CM_SYSTEM_TYPE = "cm";				// 话务系统
	public static final String OM_SYSTEM_TYPE = "om";				// 订单系统
	public static final String WM_SYSTEM_TYPE = "wm";				// 仓储系统
	public static final String HM_SYSTEM_TYPE = "hm";				// 人资系统
	public static final String FM_SYSTEM_TYPE = "fm";				// 财务系统
	public static final String SS_SYSTEM_TYPE = "ss";				// 统计系统
	public static final String MM_SYSTEM_TYPE = "mm";				// 媒资系统
	
	public static final String SMS_RM = "SMS_RM";					// 短信提醒类型
	public static final String SMS_BIRTHDAY = "54";					// 生日提醒key
	public static final String SMS_BIRTHDAY_KEY = "16";				// 生日短信模版key
	
	/*话务任务保存设置字段表类型*/
	public static final String TASK_SAVE_TYPE = "TASK_SAVE_TYPE";	// 话务任务保存设置字典表类型
	public static final String TASK_SAVE_DEPT = "1";				// 保存到话务部
	public static final String TASK_SAVE_USER = "2";				// 保存到话务员
	public static final String TASK_SAVE_USER_DEPT = "3";			// 散线保存到话务员，热线保存到话务部
	public static final String TASK_SAVE_DEPT_USER = "4";			// 散线保存到话务部，热线保存到话务员
	
	/* 资源类型 */
	public static final Integer IS_MENUS = 0;						// 菜单
	
	/*超级管理员角色id*/
	public static final String SUPER_ADMIN = "1";					// 超级管理员用户
	
	/*未处理话务任务，未被转移的任务，转移人为0*/
	public static final String CALL_UNT_NO_TRANSFER = "0";			// 未被转移的任务
	
	/*话务提醒周期常量*/
	public static final String WEEK_REMIND = "44";					// 每周
	public static final String DAY_REMIND = "40";					// 每天
	public static final String MONTH_REMIND = "41";					// 每月
	public static final String YEAR_REMIND = "42";					// 每年
	public static final String ONCE_REMIND = "43";					// 一次性
	
	/*字典表任务类别类型*/
	public static final String CALL_TASK_TYPE = "CALL_TASK_TYPE";
	
	/*任务类别*/
	public static final String CALL_FIRST_TYPE = "19";				// 一次进线/待回访
	public static final String CALL_SECOND_TYPE = "20";				// 二次进线
	public static final String CALL_OMISSION_TYPE = "21";			// 漏线
	public static final String CALL_WASTE_TYPE = "27";				// 废线
	
	/*媒体投放信息是否在播放中*/
	public static final String MEDIA_PLACEMENT_PALYING = "1";		// 播放中
	public static final String MEDIA_PLACEMENT_NOT_PALYING = "2";	// 未播放中
	
	/*一次进线，一段时间内再次呼入，不更新类别*/
	public static final int EDIT_FIRST_LINE_TIME = 15;				// 时间间隔（一次进线更新为二次进线时间间隔）
	
	/*漏线更改为一次进线，时间间隔*/
	public static final int EDIT_DRAIN_LINE_TIME = 15;				// 时间间隔（漏线15分钟内再次呼入，更新任务类别为一次进线）
	
	/*生成废线间隔时间*/
	public static final int CALL_WASTE_TIME = 30;					// 话务分配后不成单改为废线时间
	
	/*订单性质*/
	public static final String ORDER_NATURE_TYPE = "13";			// 复购
	
	public static final String SMS_PLACEHOLDER = "xxx";				// 短信模版占位符
	
	public static final String SET_BACK_COUNT_TYPE = "BACK_COUNT";	// 设置允许退单数类型
	
	/*客户初始级别*/
	public static final String CUSTOMER_LEVEL_INIT = "1";			// 普通客户
	
	public static final String CTI_SERVER_IP_TYPE = "SERVER_IP_TYPE";// 软交换服务器ip类型
	
	public static final String CUSTOMER_SOURCE_IMPORT_TYPE = "31";	 // 客户来源类型-批量导入
	
	public static final String INCOMING_POPUP_TYPE = "bridge";		 // 呼入弹屏类型
	
	/*字典表订单状态类型*/
	public static final String ORDERS_STATUS = "ORDERS_STATUS";		 // 订单类型
}
